const cookies = {};
const cookStr = document.cookie;
const cs = cookStr.split("; ");
for (const c of cs) {
    const map = c.split("=");
    const key = map[0];
    const value = map[1];
    cookies[key] = value;
}

let {loginInfo} = cookies;
loginInfo = decodeURIComponent(loginInfo);
loginInfo = JSON.parse(loginInfo);//url解码
